#pragma once
#include <jansson.h>
#include <string>
#include <vector>

#include "gui/clientproxy.h"

class Video {

public:
    Video(std::vector<char>& vcd, int bounds);
    Response GetHandleResult();
    ~Video();

    void PostPlay();

private:
    friend void ClearTempFile(const string filename);
    friend void AppendTempFile(const string filename, const char* data);

private:
    json_t* mBody;
    int mBatch;
    int mVid;
    int mNext;
};
